html,
body {
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
    height: 100%;
}

#app {
    margin: 0;
    padding: 0;
    height: 100%;
}

pre {
    outline: none;
}

.container {
    width: 100%;
    height: 100%;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav {
    width: 180px;
    background-color: rgb(0, 140, 255);
}

.main {
    /* display: flex; */
    flex: 1;
    height: 100%;
    justify-content: center;
    align-items: flex-start;
}

.rside {
    width: 280px;
    padding-right: 10px;
}

/* 响应式 */
@media (max-width: 600px) {
    .nav {
        display: none;
    }
}

@media (max-width: 1024px) {
    .rside {
        display: none;
    }
}

.logo {
    text-align: center;
    padding-top: 35px;
}

.logo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: contain;
}

.logo h2 {
    font-size: 20px;
    margin: 15px 0;
    padding: 0;
    color: white;
}

.navlink {
    margin-top: 25px;
    text-align: center;
}

.navlist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.navlist li {
    padding: 0;
    margin-top: 15px;
}

.navlist li a {
    color: white;
    margin: auto;
    width: 75%;
    display: block;
    text-decoration: none;
    border-bottom: 1px dotted;
    padding-bottom: 10px;
    text-align: center;
}

.navlist li a:hover {
    color: #bcf003;
    font-weight: bold;
}

.article-card {
    width: 90%;
    height: 120px;
    background-color: white;
    margin: 0 auto 25px auto;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

.article-card.sticky {
    width: 90%;
    height: 120px;
    background-color: white;
    margin: 0 auto 25px auto;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    border-left: #20a4fc solid 4px;
}

.article-card:hover {
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}

.article-card-title {
    margin: 0;
    padding: 10px 0px;
    font-size: 18px;
    color: #20a4fc;
    cursor: pointer;
}

.article-card-title:hover {
    color: #bcf003;
}

.article-card-des {
    height: 46px;
    color: #5c5c5c;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.article-card-footer {
    margin-top: 10px;
    color: #5c5c5c;
    font-size: 14px;
}

/* .article-card-footer-author {
    margin-right: 20px;
} */

.article-card-footer-date {
    margin-left: 20px;
}

.article-card-footer-cate {
    margin-left: 20px;
}

.sticky-icon {
    margin-right: 5px;
    color: black;
}

.rside-card {
    width: 83%;
    min-height: 130px;
    background-color: white;
    padding: 15px 15px;
    margin: 0 auto 30px auto;
    border-radius: 4px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

.rside-card-title {
    margin: 0;
    padding: 5px 0px;
    font-size: 18px;
    color: #20a4fc;
    text-align: center;
}

.rside-card-body {
    padding: 0 25px;
    overflow-y: auto;
    max-height: 260px;
}

.rside-card-body li {
    padding: 5px 0;
    cursor: pointer;
    font-size: 14px;
}

.rside-card-body li:hover {
    color: #20a4fc;
}

.search-box {
    width: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 35px auto 30px auto;
}

.search-box .search-txt {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    outline: none;
}

.search-box .search-bnt {
    height: 38px;
    padding: 10px 15px;
    background-color: #5cb85c;
    color: white;
    border: none;
    cursor: pointer;
}

.search-box .search-bnt:hover {
    background-color: #4cae4c;
}

.mnavbtn {
    z-index: 999;
    position: absolute;
    top: 5px;
    left: 5px;
    display: none;
    cursor: pointer;
}

@media screen and (max-width: 600px) {
    .mnavbtn {
        display: block;
    }

}

/* 侧边导航菜单 */
.sidemnav {
    height: 100%;
    /* 100% 全高 */
    width: 0;
    /* 0 宽度 - 使用 JavaScript 更改 */
    position: fixed;
    /* 原地不动 */
    z-index: 1;
    /* 保持在顶部 */
    top: 0;
    /* 保持在顶部 */
    left: 0;
    background-color: #111;
    /* Black*/
    overflow-x: hidden;
    /* 禁用水平滚动 */
    padding-top: 60px;
    /* 将内容从顶部放置 60px */
    transition: 0.5s;
    /* 0.5 秒过渡效果在侧导航中滑动 */
}

/* 导航菜单链接 */
.sidemnav a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 18px;
    color: #818181;
    display: block;
    transition: 0.1s;
}

/* 当您将鼠标悬停在导航链接上时，更改它们的颜色 */
.sidemnav a:hover {
    color: #f1f1f1;
}

/* 关闭按钮的位置和样式（右上角） */
.sidemnav .closemnavbtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 28px;
    margin-left: 50px;
}


@media screen and (max-height: 600px) {
    .sidemnav {
        padding-top: 15px;
    }

    .sidemnav a {
        font-size: 16px;
    }
}

.article-container {
    width: 85%;
    margin: 35px auto;
    height: calc(100% - 72px);
}

.article-view {
    height: 100%;
    margin: auto;
    margin-bottom: 20px;
}

.article-title {
    color: #2f2f2f;
    font-size: 30px;
    font-weight: bold;
    margin: 0 0 20px 0;
}

.article-meta {
    font-size: 13px;
    color: #555;
    margin: 10px 0;
}

.article-meta span {
    margin-right: 15px;
}

.article-desc {
    color: #2f2f2f;
    font-size: 14px;
    border: dashed 1.5px;
    border-color: coral;
    border-left: none;
    border-right: none;
    padding: 10px 0;
    margin: 20px 0 10px 0;
}

.article-content {
    font-size: 14px;
    padding: 15px 0;
}



/* 归档文章页面样式 */
.article-archive {
    background-color: white;
    height: calc(100% - 40px);
    padding-top: 35px;
}

.article-archive-content {
    color: #555;
    margin-bottom: 60px;
    margin-left: 40px;
    margin-right: 40px;
    position: relative;
    line-height: 2;
}

.article-archive-content::before {
    /* background: #f5f5f5; */
    background: #ececec;
    content: ' ';
    height: 100%;
    margin-left: -2px;
    position: absolute;
    top: 1.25em;
    width: 4px;
}

.article-archive-content .collection-year {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 40px;
    position: relative;
}

.article-archive-content .collection-header {
    display: block;
    margin-left: 20px;
    font-size: 26px;
}

.article-archive-content .collection-year::before {
    background: #bbb;
    margin-left: -4px;
    margin-top: -4px;
    position: absolute;
    top: 50%;
    border-radius: 50%;
    content: ' ';
    height: 8px;
    width: 8px;
}

.article-archive-content .article-header {
    border-bottom: 1px dashed #ccc;
    margin: 30px 2px 0;
    padding-left: 15px;
    position: relative;
    transition: border 0.2s ease-in-out;
}

.article-archive-content .article-header::before {
    background: #bbb;
    border: 1px solid #fff;
    left: -6px;
    position: absolute;
    top: 1em;
    transition: background 0.2s ease-in-out;
    border-radius: 50%;
    content: ' ';
    height: 6px;
    width: 6px;
}

.article-archive-content .article-meta-container {
    display: inline;
    font-size: 1em;
    margin-right: 10px;
}

.article-archive-content .article-title {
    display: inline;
}

.article-archive-content .article-title-link {
    font-size: 20px;
}

.article-archive-content .article-title a {
    color: #555;
    border-bottom: 0;
    text-decoration: none;
    cursor: pointer;
}

.article-archive-content .article-title a:hover {
    color: #2196f3;
}




/* 关于页面样式 */
.about-container {
    padding: 35px 0px;
    width: 80%;
    margin: 0px auto;
    color: #666;
}

.about-content h2 {
    display: block;
    margin: 40px 0 40px;
    background-color: #e4e4e4;
    font-size: 16px;
    color: #666;
    padding: 2px;
    font-weight: bold;
    padding-left: 16px;
}

.about-content p {
    margin: 14px 14px;
    line-height: 26px;
}